<%@page language="java" contentType="text/html; charset=utf-8"%>
<%@include file="/commons/inc.jsp" %>
<script type="text/javascript" src="${contextPath}/js/select.js"></script>
<script type="text/javascript" src="${contextPath}/js/ajax.js"></script>

<h3 id="navTitleId">检索</h3>

<input id="switchSearchBtn" type="button" value="高级检索" onclick="switchSearchMode();" />
<input type="button" id="addconditionbtn" value="添加条件" name="addCondition" onclick="addCondition();" style="display:none"/>
<%@include file="/commons/showmessage.jsp" %>

<form id="searchForm" name="searchForm" method="post"  style="display:inline">
	<script>
	CreateSelect("searchForm","S_1|S_2|S_3","","请选择表格@|请选择字段@|请选择条件@",AllStr,3);
	</script>
	 从<input type="text" name="fromValue" id="fromValue" value="${fromValue}" size="6" /> 
	 到<input type="text" name="toValue" id="toValue" value="${toValue}" size="6" />
	<input type="button" value="检索患者" name="search" onclick="javscript:searchIndex();"/>
</form>

<form id="advancedSearchForm" name="advancedSearchForm" method="post" style="display:none">
	<script>
	
	//CreateSelect("advancedSearchForm","S_1_1|S_2_1|S_3_1","","请选择表格@|请选择字段@|请选择条件@",AllStr,3);
	buildSelect("advancedSearchForm","S_1_1|S_2_1|S_3_1","","请选择表格@|请选择字段@|请选择条件@",AllStr,3);	
    </script>
	 从<input type="text" name="fromValue[0]" id="fromValue1" size="6" /> 
	 到<input type="text" name="toValue[0]" id="toValue1" size="6" />
	<input type="button" value="检索患者" name="search" onclick="javscript:advancedSearchIndex();"/>
</form>
<script>
var cc=1;

const SelectData = ""
+"基本信息@patient{{"
    +"费用@feeType((医保@1^标准@2"
    +"**性别@gender((男@0^女@1"
    +"**年龄@age((范围@searchType1"
    +"**工作性质@workType1((军人@1^非军人@0"
    
+"||个人史@personal{{"
    +"家庭人均月收入@income((<500元@1^500-1000元@2^1000-2000元@3^2000-5000元@4^5000-10000@5^>10000@6^不详@7"
    +"**饮酒@drink((是@1^否@0"
    +"**戒酒@stopdrink((是@1^否@0"
    +"**吸烟@smoke((是@1^否@0"
    +"**戒烟@stopsmoke((是@1^否@0"
    +"**药物过敏史@drugallergy((无@0^有@1^不详@2"
    +"**食物过敏史@foodallergy((无@0^有@1^不详@2"
    +"**周围环境中经常有人吸烟@aroundsmoke((是@0^否@1"
    +"**出生体重@birthweight((范围（kg）@searchType1"
    +"**开始饮酒的年龄@drinkage((范围（岁）@searchType1"
    +"**每日吸烟支数@smokeamount((范围（支）@searchType1"
    +"**吸烟年数@smokelast((范围（年）@searchType1"
    +"**吸烟指数@smokeexpo((范围@searchType1"
//    +"**饮酒种类-白酒((频率（次/周）^数量（两/次）"
//    +"**饮酒种类-黄酒((频率（次/周）^数量（两/次）"
 //   +"**饮酒种类-红酒((频率（次/周）^数量（两/次）"
 //   +"**饮酒种类-啤酒((频率（次/周）^数量（瓶/次）"
    
+"||生育史@bear{{"
    +"正常分娩@fenmian((是@1^否@0"
    +"**正常分娩值@fmcount((范围（1~10）@searchType1"
    +"**妊娠高血压史@rensheny((无@0^有@1"
    +"**妊娠高血压史值@rsycount((范围（1~5）@searchType1"
    +"**妊娠高血糖史@renshent((无@0^有@1"
    +"**妊娠高血糖史值@rstcount((范围（1~5）@searchType1"
    +"**宫外孕史@gongwai((无@0^有@1"
    +"**宫外孕史值@gwcount((范围（1~5）@searchType1"
    +"**生育巨大胎儿史@taier（出生体重>4.0Kg）((无@0^有@1"
    +"**生育巨大胎儿史值@taiercount（出生体重>4.0Kg）((范围（1~5）@searchType1"
    +"**自然流产史@liuchan((无@0^有@1"
    +"**自然流产史值@lccount((范围（1~5）@searchType1"    

+"||体格测试@lab_physical{{"
    +"身高@height((范围（cm）@searchType1"
    +"**体重@weight((范围（kg）@searchType1"
    +"**体质指数（BMI）@bmi((范围@searchType1"
    +"**体型@style((消瘦@1^正常@0^超重@2^肥胖@3"
    +"**腰围@waistline((范围（cm）@searchType1"
    +"**臀围@hip((范围（cm）@searchType1"
    +"**腰臀比（WHR）@whr((范围@searchType1"
    +"**血压-舒张压@pressurea((范围@searchType1"
    +"**血压-收缩压@pressureb((范围@searchType1"
    +"**足背动脉搏动@arterya((正常@0^减弱@1^消失@2"
    +"**胫后动脉搏动@arteryb((正常@0^减弱@1^消失@2"
    +"**细胞内液@xibaonei((范围（kg）@searchType1"
    +"**细胞外液@xibaowai((范围（kg）@searchType1"
    +"**身体总水分@zongshui((范围（kg）@searchType1"
    +"**推定骨量@guliang((范围（kg）@searchType1"
    +"**蛋白质量@danbai((范围（kg）@searchType1"
    +"**肌肉量@jirou((范围（kg）@searchType1"
    +"**去脂肪体重@quzhifang((范围（kg）@searchType1"
    +"**脂肪量@zhifang((范围（kg）@searchType1"
    +"**内脏脂肪含量@neizangzf((范围（kg）@searchType1"
    +"**皮下脂肪含量@pixiazf((范围（kg）@searchType1"
    +"**体脂肪率@tizhifang((范围@searchType1"
    +"**体脂肪率等级@tizhifangs((低于标准@0^标准@1^高于标准@2"
    +"**内脏脂肪等级@neizangs((低于标准@0^标准@1^高于标准@2"
    +"**基础代谢率@jichudaixie((范围（kcal）@searchType1"
    +"**总能量消耗@zongnl((范围（kcal）@searchType1"
    +"**功率@gonglv((范围（瓦）@searchType1"
    +"**心率@xinlv((范围（次/分）@searchType1"
    +"**靶心率@baxinlv((范围（次/分）@searchType1"
    +"**心脏功能能力@xinzang((范围（梅脱）@searchType1"
    +"**运动能力@yundong((范围（梅脱）@searchType1"
    +"**最大摄氧量（相对值）@sheyangxd((范围（ml/kg/min）@searchType1"
    +"**最大摄氧量（绝对值）@sheyangjd((范围（ml/kg/min）@searchType1"
    
    
+"||血糖指标@lab_sugar{{"
    +"葡萄糖检查方式@testmethod((毛细血管血糖（CBG）@1^静脉血清血糖（VSG）@2"
    +"**葡萄糖检查时间@testtime((早餐前@1^中餐前@2^晚餐前@3^早餐后2h@4^中餐后2h@5^晚餐后2h@5^10pm@7^12pm@8^3am@9^随机@10"
    +"**葡萄糖检测值@sugar((范围（mmol/L）@searchType1"
    +"**糖化血红蛋白@xuehong((范围（%）@searchType1"
    +"**糖化血清蛋白@xueqing((范围（mmol/L）@searchType1"
    +"**血酮体@tongti((范围（mg/L）@searchType1"
    +"**乳酸@rusuan((范围（mmol/L）@searchType1"
    
+"||血脂指标@lab_lipids{{"
    +"胆固醇（TC）@tc((范围（mmol/l）@searchType1"
    +"**甘油三酯(TG)@tg((范围（mmol/l）@searchType1"
    +"**高密度脂蛋白胆固醇(HDL-C)@hdl((范围（mmol/l）@searchType1"
    +"**低密度脂蛋白胆固醇(LDL-C)@ldl((范围（mmol/l）@searchType1"
    +"**脂蛋白a[Lp(a)]@lpa((范围（mg/l）@searchType1"
    +"**载脂蛋白A（ApoAI）@apoai((范围（g/l）@searchType1"
    +"**载脂蛋白B（ApoB）@apob((范围（g/l）@searchType1"
    +"**游离脂肪酸（FFA）@ffa((范围（mmol/l）@searchType1"
    
+"||胰岛功能-OGTT@lab_pancreat_ogtt{{"
    +"血糖（空腹）@xtempty((75g@1^50g@2^100g@3"
    +"**血糖（30min）@xthalf((75g@1^50g@2^100g@3"
    +"**血糖（60min）@xtone((75g@1^50g@2^100g@3"
    +"**血糖（120min）@xttwo((75g@1^50g@2^100g@3"
    +"**血糖（180min）@xtthree((75g@1^50g@2^100g@3"

+"||胰岛功能-胰岛素@lab_pancreat_yidaosu{{"
    +"胰岛素（空腹）@ydempty((75g@1^50g@2^100g@3"
    +"**胰岛素（30min）@ydhalf((75g@1^50g@2^100g@3"
    +"**胰岛素（60min）@ydone((75g@1^50g@2^100g@3"
    +"**胰岛素（120min）@ydtwo((75g@1^50g@2^100g@3"
    +"**胰岛素（180min）@ydthree((75g@1^50g@2^100g@3"

+"||胰岛功能-C肽@lab_pancreat_ctai{{"
    +"C肽（空腹）@ctempty((75g@1^50g@2^100g@3"
    +"**C肽（30min）@cthalf((75g@1^50g@2^100g@3"
    +"**C肽（60min）@ctone((75g@1^50g@2^100g@3"
    +"**C肽（120min）@cttwo((75g@1^50g@2^100g@3"
    +"**C肽（180min）@ctthree((75g@1^50g@2^100g@3"

+"||血常规@lab_blood{{"
    +"红细胞计数(RBC)@rbc((范围@searchType1"
    +"**血红蛋白(HGB)@hgb((范围@searchType1"
    +"**白细胞计数(WBC)@wbc((范围@searchType1"
    +"**中性杆状核粒细胞@ganzhuang((范围@searchType1"
    +"**中性分叶核粒细胞@fenye((范围@searchType1"
    +"**嗜酸性粒细胞@shisuan((范围@searchType1"
    +"**嗜碱性粒细胞@shijian((范围@searchType1"
    +"**淋巴细胞@linba((范围@searchType1"
    +"**单核细胞@danhe((范围@searchType1"
    +"**血小板计数(PLT)@plt((范围@searchType1";

function addCondition(){
	cc++;
	var fm=$('advancedSearchForm');
	var newcdt=document.createElement('div');
	/*
	var childs=GetSelectHTML("advancedSearchForm","S_1_"+cc+"|S_2_"+cc+"|S_3_"+cc,"","请选择表格@|请选择字段@|请选择条件@",AllStr,3,cc-1);
	childs+=' 从<input type="text" name="fromValue['+(cc-1)+']" id="fromValue'+cc+'"+ size="6" /> ';
	childs+=' 到<input type="text" name="toValue['+(cc-1)+']" id="toValue'+cc+'" size="6" />';	
	newcdt.innerHTML=childs;
	fm.appendChild(newcdt);
	*/
	///////////////////////////
	var _FormName="advancedSearchForm";
	var _SName="S_1_"+cc+"|S_2_"+cc+"|S_3_"+cc;
	var _SValue="";
	var _Ds="请选择表格@|请选择字段@|请选择条件@";
	var _AllOptions=SelectData;
	var ShowType=3;
	var index=cc-1;
	
	var _AllOptionStr=_AllOptions.substring(0,_AllOptions.length);
	var result="";
	
    if (_FormName=="")
        _FormName = "all";
    var _DsArr = _Ds.split("|")
    var _Ds1,_Ds2,_Ds3;
    var _Ds1 = _DsArr[0];
    var _Ds2 = (_DsArr.length>1)?_DsArr[1]:_DsArr[0];
    var _Ds3 = (_DsArr.length>2)?_DsArr[2]:_DsArr[0];

    var _SNameArr = _SName.split("|");
    var _SName1,_SName2,_SName3;
    var _SName1 = _SNameArr[0];
    var _SName2 = (_SNameArr.length>1)?_SNameArr[1]:_SNameArr[0];
    var _SName3 = (_SNameArr.length>2)?_SNameArr[2]:_SNameArr[0];

    var _SValueArr = _SValue.split("|");
    var _SValue1,_SValue2,_SValue3;
    var _SValue1 = _SValueArr[0];
    var _SValue2 = (_SValueArr.length>1)?_SValueArr[1]:_SValueArr[0];
    var _SValue3 = (_SValueArr.length>2)?_SValueArr[2]:_SValueArr[0];

    if (ShowType==3){
        _AllOptionStr = _AllOptionStr.replace(/\(\(/ig,"\(\("+_Ds3+"\^");
        _AllOptionStr = _AllOptionStr.replace(/\{\{/ig,"\{\{"+_Ds2+"\(\("+_Ds3+"\*\*");
    }
    else if(ShowType==2){
        _AllOptionStr = _AllOptionStr.replace(/\{\{/ig,"\{\{"+_Ds2+"\(\("+_Ds3+"\*\*");
    }
    else if(ShowType==1){
        _AllOptionStr = _AllOptionStr.replace(/\(\(/ig,"\(\("+_Ds3+"\^");
    }
    var AllStr = _Ds1 + "{{"+ _Ds2 + "(("+ _Ds3 +"||"+_AllOptionStr;
    var _AR0 = AllStr.split("||");
    result+="<select name=\"" + _SName1 + "\" id=\"" + _SName1 + "\" size=\"1\" onChange=\"_SName1redirect(this.options.selectedIndex,"+(cc-1)+")\">\n";
    for (var i1 = 0;i1 < _AR0.length;i1++)
    {
        var Area1Str = _AR0[i1];
        var _AR10 = Area1Str.split("{{");
        var _AR11 = _AR10[0].split("@");
        var Tstr1 = _AR11[0];
        var Vstr1 = (_AR11.length==2)?_AR11[1]:_AR11[0];
        result+="<option value=\""+Vstr1+"\">"+Tstr1+"<\/option>";
    }
    result+="<\/select>\n";

    result+="<select name=\"" + _SName2 + "\" id=\"" + _SName2 + "\" size=\"1\" onChange=\"_SName1redirect1(this.options.selectedIndex,"+(cc-1)+")\">\n";
    var _AR111 = _Ds2.split("@");
    var Tstr11 = _AR111[0];
    var Vstr11 = (_AR111.length==2)?_AR111[1]:_AR111[0];
    result+="<option value=\""+Vstr11+"\">"+Tstr11+"<\/option>\n";
    result+="<\/select>\n";

    result+="<select name=\"" + _SName3 + "\" id=\"" + _SName3 + "\" size=\"1\">\n";
    var _AR222 = _Ds3.split("@");
    var Tstr22 = _AR222[0];
    var Vstr22 = (_AR222.length==2)?_AR222[1]:_AR222[0];
    result+="<option value=\""+Vstr22+"\">"+Tstr22+"<\/option>\n";
    result+="<\/select>\n";
	////////////////
	var childs=result;
	childs+=' 从<input type="text" name="fromValue['+(cc-1)+']" id="fromValue'+cc+'"+ size="6" /> ';
	childs+=' 到<input type="text" name="toValue['+(cc-1)+']" id="toValue'+cc+'" size="6" />';	
	newcdt.innerHTML=childs;
	fm.appendChild(newcdt);	
	/////////////////
	_SName1temp.push(document.getElementsByName(_SName2)[0]);
	_SName1Group2s.push(document.getElementsByName(_SName2)[0].options.length);
	_SName1Group2.push(new Array(_SName1groups));
	for (i=0; i<_SName1groups; i++){
		_SName1Group2[index][i]=new Array(_SName1group[i].length);
		for (j=0; j<_SName1group[i].length; j++){
			_SName1Group2[index][i][j]=new Array();
		}
	}
	for (var i1 = 0;i1 < _SName1_AR0.length;i1++){
		var Area1Str = _SName1_AR0[i1];
		var _AR10 = Area1Str.split("{{");
		var _AR12 = _AR10[1].split("**");
		for (var i2 = 0;i2 < _AR12.length;i2++){
			var Area2Str = _AR12[i2];
			var _AR20 = Area2Str.split("((");
			_AR212 = _AR20[1].split("^");
			for (var i3 = 0;i3 < _AR212.length;i3++){
				Area3Str = _AR212[i3];
				_AR3 = Area3Str.split("@");
				Tstr3 = _AR3[0];
				Vstr3 = (_AR3.length==2)?_AR3[1]:_AR3[0];
				_SName1Group2[index][i1][i2][i3]=new Option(Tstr3,Vstr3);
			}
		}
	}
	_SName1temp1.push(document.getElementsByName(_SName3)[0]);	
}

function switchSearchMode(){
	var btn=$('switchSearchBtn');
	if(btn.value=='高级检索'){
		$('searchForm').style.display='none';
		$('advancedSearchForm').style.display='inline';
		$('addconditionbtn').style.display='inline';
		btn.value='一般检索';
	}else{
		$('searchForm').style.display='inline';
		$('advancedSearchForm').style.display='none';
		$('addconditionbtn').style.display='none';
		btn.value='高级检索';
	}
}



function searchIndex(){
	var ajax = new postAjax();
	var s1 = $('S_1');
	var s2 = $('S_2');
	var s3 = $('S_3');
	var v1 = s1.options[s1.selectedIndex].value;
	var v2 = s2.options[s2.selectedIndex].value;
	var v3 = s3.options[s3.selectedIndex].value;
	var fv = $('fromValue').value;
	var tv = $('toValue').value;
	
	if(v1!=null && v1!="" && v2!=null && v2!="" && v3!=null && v3!=""){
		if(v3=="searchType1" || v1.indexOf("lab_pancreat")!=-1){
			if(fv==null || fv=="" || tv==null || tv==""){
				alert("请输入范围");
				return;
			}	 
			if((Validator.Integer.test(fv) || Validator.ZDouble.test(fv)) && 
					(Validator.Integer.test(tv) || Validator.ZDouble.test(tv)) ){
				if(tv < fv){
					alert("最小值必须小于或等于最大值");
					return;
				}		
			}else{
				alert("检索范围输入有误，请输入数字");
				return;
			}
		}else if(v3=="searchType2"){
			if(fv==null || fv==""){
				alert("请输入搜索值");
				return;
			}else{
				if((Validator.Integer.test(fv) || Validator.ZDouble.test(fv))){
					alert("检索范围输入有误，请输入数字");
					return;
				}
			}
		}               		
		//alert(v1+","+v2+","+v3+","+ fv+","+tv);
		url = "search/search.action?method=search&";
		value = "select1=" + v1 + "&select2="+ v2 +"&select3="+v3+"&fromValue="+fv+"&toValue="+tv;
		ajax.connect(url,value,searchCallback);
	}else{
		alert("请选择检索内容");
		return;
	}
	
}

function advancedSearchIndex(){
	var ajax = new postAjax();
	
	var s1 = new Array();
	var s2 = new Array();
	var s3 = new Array();
	var v1 = new Array();
	var v2 = new Array();
	var v3 = new Array();
	var fv = new Array();
	var tv = new Array();
	
	for(var i=0;i<cc;i++){
		s1.push($('S_1_'+(i+1)));
		s2.push($('S_2_'+(i+1)));
		s3.push($('S_3_'+(i+1)));
		v1.push(s1[i].options[s1[i].selectedIndex].value);
		v2.push(s2[i].options[s2[i].selectedIndex].value);
		v3.push(s3[i].options[s3[i].selectedIndex].value);
		fv.push($('fromValue'+(i+1)).value);
		tv.push($('toValue'+(i+1)).value);
		
		if(v1[i]!=null && v1[i]!="" && v2[i]!=null && v2[i]!="" && v3[i]!=null && v3[i]!=""){
			if(v3[i]=="searchType1" || v1[i].indexOf("lab_pancreat")!=-1){
				if(fv[i]==null || fv[i]=="" || tv[i]==null || tv[i]==""){
					alert("请输入第"+(i+1)+"个条件的范围");
					return;
				}	 
				if((Validator.Integer.test(fv[i]) || Validator.ZDouble.test(fv[i])) && 
						(Validator.Integer.test(tv[i]) || Validator.ZDouble.test(tv[i])) ){
					if(tv[i] < fv[i]){
						alert("第"+(i+1)+"个条件的最小值必须小于或等于最大值");
						return;
					}		
				}else{
					alert("第"+(i+1)+"个条件的检索范围输入有误，请输入数字");
					return;
				}
			}else if(v3[i]=="searchType2"){
				if(fv[i]==null || fv[i]==""){
					alert("请输入第"+(i+1)+"个条件的搜索值");
					return;
				}else{
					if((Validator.Integer.test(fv[i]) || Validator.ZDouble.test(fv[i]))){
						alert("第"+(i+1)+"个条件的检索范围输入有误，请输入数字");
						return;
					}
				}
			}
		}else{
			alert("请选择第"+(i+1)+"个条件的检索内容");
			return;
		}
	}              		
	
	//alert(v1+","+v2+","+v3+","+ fv+","+tv);
	url = "advancedSearch/advancedSearch.action?method=search&";
	
	var value="numOfConditions="+cc;
	var select1="&select1="+v1[0];
	var select2="&select2="+v2[0];
	var select3="&select3="+v3[0];
	var fromValue="&fromValue="+fv[0];
	var toValue="&toValue="+tv[0];
	
	for(var j=1;j<cc;j++){
		select1+="|"+v1[j];
		select2+="|"+v2[j];
		select3+="|"+v3[j];
		fromValue+="|"+fv[j];
		toValue+="|"+tv[j];
	}
	
	value += select1 + select2 +select3+fromValue+toValue;
	ajax.connect(url,value,searchCallback);
}

function searchCallback(xmlHttp){
	var re = xmlHttp.responseText;
	if(re=="0"){
		showError($('statusBar'), "暂无相应记录");
		var all = $('patientList').parentNode.outerHTML;
		var i = all.indexOf("<tbody");
		$('patientList').parentNode.outerHTML = all.substring(0,i-1)+ "<tbody id=\"patientList\"></tbody>";
		return;
	}else{
		var list = eval("(" +re+ ")");
		var str = "";
		for(var i=0;i<list.length;i++){
			str += "<tr>";
			str += "<td align=\"left\" class=\"form-td\">";
			str += list[i].patientid + "</td>";
			str += "<td align=\"left\" class=\"form-td\">";
			str += list[i].patientname + "</td>";
			str += "<td align=\"left\" class=\"form-td\">";
			str += list[i].address + "</td>";
			str += "<td align=\"left\" class=\"form-td\">";
			str += list[i].telephone + "</td>";
			//str += "<td align=\"left\" class=\"form-td\">";
			//str +=        "</td>";
			str += "<td align=\"left\" class=\"form-td\">";
			str += list[i].followtime + "</td>";
			str += "<td align=\"left\" class=\"form-td\">";
			var s = list[i].patientstatus;
			if(s=="0"){
				str += "<font color=\"#8F4586\">进行中</font></td>";
			}else if(s=="1"){
				str += "<font color=\"#2828FF\">失访</font></td>";
			}else if(s=="2"){
				str += "<font color=\"#FF8000\">死亡</font></td>";
			}else if(s=="3"){
				str += "<font color=\"red\">完成</font></td>";
			}

			str += "<td align=\"left\" class=\"form-td\"><a href=\"javascript:void(0);\" onclick=\"doEdit( ";
			str += list[i].patientid + ",1); return false\">基线信息</a>&nbsp;&nbsp;|&nbsp;&nbsp;";
			str += "<a href=\"javascript:void(0);\" onclick=\"doEdit(";
			str += list[i].patientid +",2); return false\">随访信息</a></td>"   	
			str +="</tr>";
		}
	 	var all = $('patientList').parentNode.outerHTML;
		var i = all.indexOf("<tbody");
		$('patientList').parentNode.outerHTML = all.substring(0,i-1)+ "<tbody id=\"patientList\">" + str + "</tbody>";
	}
}

function doEdit(id, flag){
	location.href="${contextPath}/patient/patient.action?method=editPatient&patientid="+id+"&flag="+flag;
}
</script>

<form id="listForm" name="listForm" method="post">
<table id="searchListtb" border="0" cellspacing="1" cellpadding="0" class="formTable" width="100%" >
      <thead>
        <tr>
          <td width="50" align="center" class="form-th">编号</td>
          <td width="50"  align="center" class="form-th">姓名</td>
		  <td width="170" align="center" class="form-th">家庭住址</td>
          <td width="80"  align="center" class="form-th">联系电话</td>
          <!-- <td width="60"  align="center" class="form-th">临床分组情况</td> -->
          <td width="75"  align="center" class="form-sort-th" onclick="tbSort('followTime');">随访时间
          	<s:if test="orderCol=='followTime'">
          		<s:if test="ascOrDesc=='DESC'"><img src="${contextPath }/images/sort_desc.png" width="13" height="13" border="0" /></s:if>
          		<s:else><img src="${contextPath }/images/sort_asc.png" width="13" height="13" border="0" /></s:else>
          	</s:if>
          </td>
          <td width="40"  align="center" class="form-th">状态</td>    
          <td width="85"  align="center" class="form-th">操作</td>
        </tr>
      </thead>
      <tbody id="patientList"></tbody>
</table>
</form>
<div style="display:block; height:10px;"></div>
</div>